home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / General App Samples / QDGX Shell ƒ / QDGX shell.mpwfat.make < prev    next >
Encoding:
Text File  |  1995-07-11  |  4.0 KB  |  120 lines  |  [TEXT/MPS ]

  1. #
  2. #   File:       QDGX shell.mpwfat.make
  3. #
  4. #   Target:     QDGX shell.mpwfat 
  5. #
  6. #    Why:    This makefile creates a "FAT" version of the QuickDraw GX sample shell app
  7. #                Since we built a "FAT" version of this app, it will run on a 68k or PowerPC Mac running
  8. #                QuickDraw GX v1.0 or newer.
  9. #
  10. #   Sources:    "{GXLIBRARIES}ColorLibrary.c"
  11. #               "{GXLIBRARIES}FontLibrary.c"
  12. #               "{GXLIBRARIES}GraphicsDebugLibrary.c"
  13. #               "{GXLIBRARIES}ShapeLibrary.c"
  14. #               "{GXLIBRARIES}TransformLibrary.c"
  15. #               "QDGX shell.r"
  16. #               "QDGX shell.c"
  17. #               "QDGX shell misc.c"
  18. #               "QDGX shell printing.c"
  19. #               "put your code here.c"
  20. #
  21. #   Created:    Wednesday, December 22, 1993 05:09:44 PM
  22. #
  23.  
  24. ThisMakeFile        =    QDGX shell.mpwfat.make
  25.  
  26. GXINTERFACES         = {CIncludes}
  27. SOURCE                    =    :
  28. OBJ68K                    =    :Obj68K:
  29. OBJPPC                    =    :ObjPPC:
  30. GXLIBRARIES         = {MPW}GXLibraries:
  31. GXLIBRARIES68K     = {Obj68K}
  32. GXLIBRARIESPPC     = {ObjPPC}
  33.  
  34. 68KOBJECTS         =    "{GXLIBRARIES68K}ColorLibrary.c.o" ∂
  35.                                 "{GXLIBRARIES68K}FontLibrary.c.o" ∂
  36.                                 "{GXLIBRARIES68K}GraphicsDebugLibrary.c.o" ∂
  37.                                 "{GXLIBRARIES68K}ShapeLibrary.c.o"            ∂
  38.                                 "{GXLIBRARIES68K}TransformLibrary.c.o" ∂
  39.                                 "{OBJ68K}QDGX shell.c.o" ∂
  40.                                 "{OBJ68K}QDGX shell misc.c.o" ∂
  41.                                 "{OBJ68K}QDGX shell printing.c.o" ∂
  42.                                 "{OBJ68K}put your code here.c.o" ∂
  43.  
  44. POWERPCOBJECTS     =     "{GXLIBRARIESPPC}ColorLibrary.o"∂
  45.                                         "{GXLIBRARIESPPC}FontLibrary.o" ∂
  46.                                         "{GXLIBRARIESPPC}GraphicsDebugLibrary.o" ∂
  47.                                         "{GXLIBRARIESPPC}ShapeLibrary.o"            ∂
  48.                                         "{GXLIBRARIESPPC}TransformLibrary.o" ∂
  49.                                         "{OBJPPC}QDGX shell.o" ∂
  50.                                         "{OBJPPC}QDGX shell misc.o" ∂
  51.                                         "{OBJPPC}QDGX shell printing.o" ∂
  52.                                         "{OBJPPC}put your code here.o" ∂
  53.  
  54. #
  55. # MakePEF allows us to "weak" link to QuickDrawGXLib so our PowerPC code can run if the library
  56. # isn't present.  It's up to the app to check before we call any of the GX functions, though.  
  57. # We specify weaking linking by the end of the -weakLib option to PPCLink (see below).
  58. #
  59.  
  60. #
  61. #    You need to define debugging to enable all of the GX warnings available only in the 
  62. #    debugging version of the QuickDraw GX debugging init.
  63. #
  64. CSYMOPTIONS            = -sym on
  65. COPTIONS                 = -d debugging -i "{GXINTERFACES}" -i "{GXLIBRARIES}" {CSYMOPTIONS}
  66.  
  67. PPCSYMOPTIONS        = -sym on
  68. PPCCOPTIONS         = -d debugging -i "{GXINTERFACES}" -i "{GXLIBRARIES}" {PPCSYMOPTIONS} -w conformance -appleext on
  69.  
  70.  
  71. #------------------------------------------------------------------------------
  72. # These are modified default build rules.  This is so we can automatically 
  73. # build for both 68K and PowerPC.
  74. #------------------------------------------------------------------------------
  75. "{OBJ68K}"                ƒ    "{SOURCE}"
  76.  
  77. "{GXLIBRARIES68K}"    ƒ    "{GXLIBRARIES}"
  78.  
  79. .c.o                    ƒ    .c
  80.     {C} {COptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  81.  
  82. "{OBJPPC}"                ƒ    "{SOURCE}"
  83.  
  84. "{GXLIBRARIESPPC}"    ƒ    "{GXLIBRARIES}"
  85.  
  86. .o                        ƒ    .c
  87.     PPCC {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.o
  88.  
  89. #------------------------------------------------------------------------------
  90.  
  91.  
  92. "QDGX shell.mpwfat"  ƒƒ "{ThisMakeFile}" 'QDGX shell.r'
  93.     Rez 'QDGX shell.r' -append -o "QDGX shell.mpwfat"
  94.  
  95. "QDGX shell.mpwfat" ƒƒ "{ThisMakeFile}"  {POWERPCOBJECTS}
  96.     PPCLink  {PPCSYMOPTIONS} ∂
  97.         {POWERPCOBJECTS} ∂
  98.         "{PPCLibraries}"InterfaceLib.xcoff ∂
  99.         "{PPCLibraries}"QuickDrawGXLib.xcoff ∂
  100.         "{PPCLibraries}"MathLib.xcoff ∂
  101.         "{PPCLibraries}"StdCLib.xcoff ∂
  102.         "{PPCLibraries}"StdCRuntime.o ∂
  103.         "{PPCLibraries}"PPCCRuntime.o ∂
  104.         -main __start ∂
  105.         -o "QDGX shell.mpwfat" ∂
  106.         -librename InterfaceLib.xcoff=InterfaceLib ∂
  107.       -librename QuickDrawGXLib.xcoff=QuickDrawGXLib ∂
  108.         -librename MathLib.xcoff=MathLib ∂
  109.         -librename StdCLib.xcoff=StdCLib ∂
  110.         -weakLib QuickDrawGXLib ∂
  111.         -t APPL -c '????'
  112.     MakeSYM -i "{GXLIBRARIESGXLIBRARIES}" "QDGX shell.mpwfat.xcoff" -o "QDGX shell.mpwfat.xSYM"
  113.  
  114. "QDGX shell.mpwfat" ƒƒ "{ThisMakeFile}"  {68KOBJECTS}
  115.     Link -t APPL -c '????' {CSYMOPTIONS} -mf ∂
  116.         {68KOBJECTS} ∂
  117.          "{Libraries}"Runtime.o ∂
  118.          "{Libraries}"Interface.o ∂
  119.         -o "QDGX shell.mpwfat"
  120.